package com.zp.singleton;

/**
 * @author zhpeng
 * @discription 懒加载，线程不安全
 * @created 2021/9/3 14:01
 */
public class Singleton01 {
    private static Singleton01 singleton01;
    private Singleton01(){};
    public static Singleton01 getInstance(){
        if(singleton01==null){
            singleton01 = new Singleton01();
        }
        return singleton01;
    }
}
